package com.kksoft.readcm.a;

import com.kksoft.readcm.activity.App;

import java.util.Observable;
import java.util.concurrent.atomic.AtomicBoolean;

public class AppObservable extends Observable    //old q
{
  protected boolean a;
  protected Appconfig b;
  protected ItemAppObservable c;
  protected LoginAppObservable d;
  protected SqliteAppObservable e;
  protected y f;
  protected k g;
  protected LoginObservable h;
  protected c i;
  protected ag j;
  private ah k;
  private am l;

  public AppObservable()
  {
    this.a = false;
  }

  public final void a(Appconfig appconfig)
  {
    this.b = appconfig;
    this.c = appconfig.getItemAppObservable();
    this.d = appconfig.b();
    this.e = appconfig.a();
    this.f = appconfig.d();
    this.k = appconfig.i();
    this.g = appconfig.g();
    this.l = appconfig.h();
    this.h = appconfig.getLoginObservable();
    this.i = appconfig.e();
    this.j = appconfig.k();
  }

  protected final void a(IllegalStateException paramIllegalStateException)
  {
    if (this.a)
      App.b(paramIllegalStateException);
    else
      App.showError(paramIllegalStateException);
  }

  protected final void a(Throwable paramThrowable)
  {
    if (this.a)
      App.b(paramThrowable);
    else
      App.showError(paramThrowable);
  }

  public void i()
  {
    this.a=true;
  }

  public final Appconfig s()
  {
    return this.b;
  }
}